
import mhv.fr.sprite.Sprite;
import mhv.fr.sprite.controller.SpriteController;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Marc-Henri
 */
public class CentipedeBodyController extends SpriteController {
    private long centipedeId;

    final int SPRITE_SHIP = 1;
    final int SPRITE_BULLET = 2;
    final int SPRITE_MUSHROOM_NORMAL = 10;
    final int SPRITE_MUSHROOM_HIT_1 = 11;
    final int SPRITE_MUSHROOM_HIT_2 = 12;
    final int SPRITE_CENTIPEDE_HEAD = 20;
    final int SPRITE_CENTIPED_BODY = 21;
    final int SPRITE_SPIDER = 30;


    public CentipedeBodyController() {
    }

    public long getCentipedeId() {
        return centipedeId;
    }

    @Override
    public void doCollide(Sprite sp) {
        switch (sp.getType()) {
            case SPRITE_BULLET:
                GameManager.getInstance().getCentipede(centipedeId).SplitCentipede(getSpriteId());

                break;


        }
    }

    public void setCentipedeId(long centipedeId) {
        this.centipedeId = centipedeId;
    }


}
